import os

path = 'C://Users//ypp//Desktop//新建文件夹 - 副本/'
file_name = os.listdir(path)
for name in file_name:
    new_name = '附件2-软件工程四班-' + name
    os.rename(path + name, path + new_name)
    print(new_name)